<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			.wrap {
				margin: 150px auto;
				width: 500px;
				height: 500px;
				background-color: #1c2234;
				position: relative;
				
			}
			.inner {
				position: absolute;
				top: 50%;
				left: 50%;
				transform: translate(-50%,-50%);
				width: 400px;
				height: 100px;
				border:5px solid #FF6700;
				text-align: center;
				line-height: 100px;
				font-size: 26px;
				color: #fff;
				overflow: hidden;
				cursor: pointer;
			}
			.inner::before {
				content: '';
				display: block;
				width: 0;
				height: 100px;
				background-color: #FF6700;
				position: absolute;
				top: 50%;
				left: 50%;
				transform: translate(-50%,-50%) skewX(-45deg);
				z-index: -1;
				transition: .2s;
			}
			 .inner:hover::before{
				width: 200%;
			}
		</style>
	</head>
	<body>
		<div class="wrap">
			<div class="inner">带你进入CSS精彩世界</div>
		</div>
	</body>
</html>
